package com.huaxiafinance.management.service;

import com.huaxiafinance.management.dto.request.AddDistributionDto;
import com.huaxiafinance.management.dto.request.UpdateDistributionDto;
import com.huaxiafinance.management.util.MessageResult;

import java.util.List;
import java.util.Map;

public interface DistributionService {

  List<Map> getList(Integer state, String name, Integer page, Integer rows);

  Map selectOne(Integer id);

  List<Map> queryList();

  void addOne(AddDistributionDto dto);

  void updateOne(UpdateDistributionDto dto);

  MessageResult updateState(Integer state, Integer id);

  Integer countList(Integer state, String name);
}
